package com.ruoyi.his.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 治疗记录对象 treatment_record
 * 
 * @author hzr
 * @date 2024-10-16
 */
public class TreatmentRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 诊疗ID */
    private Long id;

    /** 病患ID */
    @Excel(name = "病患ID")
    private Long patientId;

    /** 治疗时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "治疗时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date treatmentTime;

    /** 医生ID */
    @Excel(name = "医生ID")
    private Long doctorId;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String diagnosis;

    /** 医嘱内容 */
    @Excel(name = "医嘱内容")
    private String prescription;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String notes;



    private Doctor doctor;

    private Patient patient;
    private String  dockerName;

    @Override
    public String toString() {
        return "TreatmentRecord{" +
                "id=" + id +
                ", patientId=" + patientId +
                ", treatmentTime=" + treatmentTime +
                ", doctorId=" + doctorId +
                ", diagnosis='" + diagnosis + '\'' +
                ", prescription='" + prescription + '\'' +
                ", notes='" + notes + '\'' +
                ", doctor=" + doctor +
                ", patient=" + patient +
                ", dockerName='" + dockerName + '\'' +
                ", updatedAt=" + updatedAt +
                '}';
    }

    public void setDockerName(String dockerName) {
        this.dockerName = dockerName;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public String getDockerName() {
        return dockerName;
    }

    public Long getPatientId()
    {
        return patientId;
    }
    public void setTreatmentTime(Date treatmentTime) 
    {
        this.treatmentTime = treatmentTime;
    }

    public Date getTreatmentTime() 
    {
        return treatmentTime;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setPrescription(String prescription) 
    {
        this.prescription = prescription;
    }

    public String getPrescription() 
    {
        return prescription;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

}
